package com.oracle.violet.first.bean

class TypePlus(val str:String) {


  def toIntPlus={
   try {this.str.toInt
   }catch {
     case _:Exception=>0
   }
  }


  def toDoublePlus={
    try {
      this.str.toDouble
    }catch {
      case _:Exception=>0d
    }
  }

}
object TypePlus{
  implicit def strSwitchString(str:String)=new TypePlus(str)
}
